/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac3.client.gui.model;

import edu.uoc.tdp.pac3.bo.IIncidenciaBO;
import edu.uoc.tdp.pac3.domain.Request;
import java.rmi.RemoteException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Implementacio de AbstractModelComboBox per l'acces a dades de Request
 * @author Gerard
 */
public class RequestModelComboBox extends AbstractModelComboBox<Request> {

    public RequestModelComboBox(IIncidenciaBO bo) throws RemoteException {
        super(bo);
    }

    public RequestModelComboBox(List<Request> request) throws RemoteException {
        setItems(request);
    }
    
    

    @Override
    protected void fillList() throws RemoteException {
        try {
            setItems(getBo().getIncidenciesActives());
        } catch (RemoteException ex) {
            Logger.getLogger(RequestModelComboBox.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    

}
